<?php

namespace App\Datalog\Events;

use App\Models\Log\LogAdPostback;

// 买量金额上报记录日志
class AdPayPostbackEventLog extends EventLog
{
    // 日志名称
    protected $name = 'ad-paypostback';

    protected $eventId = 3001;

    public function addLog($user_id, LogAdPostback $log)
    {
        $params = [
            'user_id'     => $user_id,
            'create_time' => $log->status_time,
            'money'       => $log->post_money,
            'id'          => $log->mod_id,
        ];
        $this->addEventLog($params['user_id'], $params['create_time'], $params);
    }
}
